package com.wang.user.service;

import com.wang.param.PostCollectionQueryParam;
import com.wang.param.PostQueryParam;
import com.wang.param.PostReviewParam;
import com.wang.param.PostSubmitParam;
import com.wang.reponse.PostVo;
import com.wang.user.model.Post;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author bkty0
* @description 针对表【post(帖子)】的数据库操作Service
* @createDate 2025-04-23 10:39:21
*/
public interface PostService extends IService<Post> {

    /**
     * 根据帖子id集合查询所有帖子数据
     * @param postIds
     * @return
     */
    List<PostVo> listVoByPostIds(List<Long> postIds);

    List<PostVo> listByShopId(PostCollectionQueryParam queryParam);

    List<PostVo> list(PostCollectionQueryParam queryParam);

    Boolean submit(PostSubmitParam submitParam);

    Boolean review(PostReviewParam reviewParam);

    List<PostVo> adminList(PostCollectionQueryParam queryParam);

    List<PostVo> myList(PostCollectionQueryParam queryParam);

    List<PostVo> reviewList(PostCollectionQueryParam queryParam);

    List<PostVo> listByShopId2(Long shopId);

    PostVo detailById(Integer id);

    List<PostVo> listVoByPostIdsAndUid(List<Long> postIds, Integer uid);
}
